export default ($axios) => {
  return {
    // axios get请求
    getData: () => $axios.get('/api/get_index_data'),
    // axios get请求传参
    getDataHasParams: params => $axios.get('/api/get_index_data', {params}),
    // axios post 传参
    postData: data => $axios.post('/api/get_index_data', data),
    // post params传参
    postParams: params => $axios.post('/api/post_params', null, {params})
    // ...your other api function
  }
}
